package com.zretc.controller;


import com.zretc.service.CollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/collect")
public class CollectController {
    @Autowired
    private CollectService collectService;
    @RequestMapping("/findCollect")
    @ResponseBody
    public List<Map<String,Object>> findCollect(@RequestParam(value = "accountName") String accountName){
        List<Map<String, Object>> collect = collectService.getCollectByAccountName(accountName);
        return collect;
    }


}
